package com.demo2do.boyle.backend.service.customer;

import java.util.List;

import com.demo2do.boyle.backend.service.DataService;
import com.demo2do.boyle.common.entity.customer.Customer;
import com.demo2do.boyle.common.entity.customer.CustomerTag;
import com.demo2do.boyle.common.entity.customer.social.SocialAccount;
import com.demo2do.core.entity.Result;

/**
 * 
 * @author Wilson
 */
public interface CustomerService extends DataService<Customer> {

	/**
	 * 
	 * @param customer
	 * @param lifeTagCodes
	 * @param interestTagCodes
	 */
	public void create(Customer customer, List<Integer> lifeTagCodes, List<Integer> interestTagCodes);
    
    /**
     * load social account
     * 
     * @param id
     * @return
     */
    public SocialAccount loadSocialAccount(Integer id);
    
    /**
     * edit social account
     * 
     * @param socialAccount
     * @return
     */
    public Result editSocialAccount(SocialAccount socialAccount);
    
    /**
     * 
     * @param customerTag
     */
    public void editTag(CustomerTag customerTag);
    
}
